package com.jswlw.dao.biz;

import com.jswlw.entity.biz.DistributionRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DistributionRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DistributionRecord record);

    int insertSelective(DistributionRecord record);

    DistributionRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DistributionRecord record);

    int updateByPrimaryKey(DistributionRecord record);

    List<DistributionRecord> queryList(DistributionRecord filter);

    int totalAmount(@Param("distributorId") Integer distributorId,
                    @Param("startTime") Date startTime,
                    @Param("endTime") Date endTime);

    int totalAmount4Distributor(DistributionRecord record);
}